[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-30 Thread Henning Hraban Ramm
Am 29.07.23 um 23:16 schrieb Hans Hagen: On 7/29/2023 10:35 PM, Henning Hraban Ramm wrote: The setup for MyCode is not applied to \typeMyBuffer, and I don’t know how it could; something like \typeMyBuffer[MyCode] doesn’t work. These commands inherit from buffer, so \setupbuffer will work

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Hans Hagen
; then the \fakewords macro shown (again not executed) as per the default for typing. The setup for MyCode is not applied to \typeMyBuffer, and I don’t know how it could; something like \typeMyBuffer[MyCode] doesn’t work. These commands inherit from buffer, so \setupbuffer will work. But as I need

Re: [NTG-context] Concatenate buffers without newline

2021-06-22 Thread Wolfgang Schuster
next time. \starttext \startbuffer[first] First paragraph. \stopbuffer \startbuffer[second] Second paragraph. \stopbuffer \start \setupbuffer[before=,after=] \getbuffer[first]% \getbuffer[second] \stop \blank \getbuffer[first,second] \stoptext Wolfgang

Re: [NTG-context] Styling of included buffers or files

2020-05-18 Thread Wolfgang Schuster
now that I can do something like this: \startcolumns \getbuffer[Muenchen] \stopcolumns Or do something with \defineparagraph Is it somehow possible to apply styles to all buffers that gets included via \getbuffer by defining a special getbuffer-style? \setupbuffer has before and after keys

Re: [NTG-context] Styling of included buffers or files

2020-05-18 Thread Jan U. Hasecke
Am 17.05.20 um 19:04 schrieb Marco Patzer: >> >> Is it somehow possible to apply styles to all buffers that gets >> included via \getbuffer by defining a special getbuffer-style? > > \setupbuffer has before and after keys which can be used. Example: > > \setupbuff

Re: [NTG-context] Styling of included buffers or files

2020-05-17 Thread Marco Patzer
that I can do something like this: > > \startcolumns > \getbuffer[Muenchen] > \stopcolumns > > Or do something with \defineparagraph > > Is it somehow possible to apply styles to all buffers that gets > included via \getbuffer by defining a special getbuffer-style? \setupbuff

Re: [NTG-context] ASCII mode within \footnote

2019-11-04 Thread Wolfgang Schuster
s a result the asciimode command can't work because the text has already disappeared. Other characters like $ are less problematic because there are ways to change their meaning afterwards (# can be tricky) but not comments because nothing remains. \setupbuffer   [before=\blank,    af

Re: [NTG-context] source code and result side by side

2017-08-03 Thread Henning Hraban Ramm
odeExampleFramed{\getCodeExample}}} Oh, I overlooked something: Can I get pretty printing back, like in \startTEX ... \stopTEX? I couldn’t find any suitable setup options. This doesn’t work: \setupbuffer[CodeExampleB][before={\startTEX},after={\stopTEX}] Greetlings, Hraban --- http:/

[NTG-context] problem with buffer

2014-09-15 Thread Kenny
} {\defineenumeration[SOLUTION] % display the solutions [text=\Word{solution},number=no, after={\vskip1ex}]} {\definebuffer[SOLUTION] % hide solutions, \setupbuffer[SOLUTION][local=yes]} } \def\startsolution

Re: [NTG-context] Hiding text

2013-03-22 Thread Sietse Brouwer
adapted from Hans's \starthiding (which already exists): \definebuffer[Hidden] % uncomment the below to turn this into a non-hiding buffer. % \setupbuffer[Hidden][after={\getbuffer[Hidden]}] \startHidden asdf asdf \stopHidden Cheers, Sietse

Re: [NTG-context] Hiding text

2013-03-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
, by default, until you get them. The below is shamelessly adapted from Hans's \starthiding (which already exists): \definebuffer[Hidden] % uncomment the below to turn this into a non-hiding buffer. % \setupbuffer[Hidden][after={\getbuffer[Hidden]}] \startHidden asdf asdf \stopHidden Cheers

Re: [NTG-context] Hiding text

2013-03-22 Thread Sietse Brouwer
the below to turn this into a non-hiding buffer. % \setupbuffer[Hidden][after={\getbuffer[Hidden]}] \startHidden asdf asdf \stopHidden Cheers, Sietse -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658

Re: [NTG-context] \startmode and \startcomment inside of \def

2010-11-07 Thread Wolfgang Schuster
Solution environment or define the environment as \definebuffer[Solution][local=yes] \startmode[solutions] \setupbuffer[Solution][local=no] \stopmode \starttext ... \startSolution solution \stopSolution ... \stoptext Wolfgang

Re: [NTG-context] \startmode and \startcomment inside of \def

2010-11-07 Thread Vedran Miletić
this? Use \startmode[...] ... \stopmode in your document without your own Solution environment or define the environment as \definebuffer[Solution][local=yes] \startmode[solutions] \setupbuffer[Solution][local=no] \stopmode \starttext ... \startSolution solution \stopSolution

Re: [NTG-context] \startmode and \startcomment inside of \def

2010-11-07 Thread Wolfgang Schuster
Am 07.11.2010 um 20:49 schrieb Vedran Miletić: How would I then do something like this? \def\startSolution{\startmode[solutions]\startframedtext} \def\stopSolution{\stopframedtext\stopmode} \startmode[solution] \setupbuffer[Solution][local=no,before=\startframedtext,after=\stopframedtext

Re: [NTG-context] \startmode and \startcomment inside of \def

2010-11-07 Thread Aditya Mahajan
On Sun, 7 Nov 2010, Wolfgang Schuster wrote: Am 07.11.2010 um 20:49 schrieb Vedran Miletić: How would I then do something like this? \def\startSolution{\startmode[solutions]\startframedtext} \def\stopSolution{\stopframedtext\stopmode} \startmode[solution] \setupbuffer[Solution][local

[NTG-context] change affecting MPgraphic?

2010-09-24 Thread Marko Schütz Schmuck
In the default mode, the solution evironment should gobble its contents. %D I copy the definition of \tex{starthiding} to {\em hide} the solutions. \definebuffer [solution] \setupbuffer [solution] [local=yes] %D In solution mode, I redefine solution environment as an %D enumeration without

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
] \setupbodyfont[options] \setupbodyfontenvironment[settings][settings] \setupbottom[settings][settings] \setupbottomtexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber] \setupbuffer[name][options] \setupbuttons[state][settings] \setupcapitals[title=yes|no][sc

Re: [NTG-context] \getbuffer question

2006-01-19 Thread Taco Hoekwater
David Arnold wrote: Then you do: \getbuffer will the setup be in a group, and only pertain to the stuff set with \getbuffer? No, normally they will live on (buffers often contain definitions). But you can use \setupbuffer[before=\begingroup,after=\endgroup] Cheers, taco

Re: [NTG-context] \stopbuffer in macro

2005-06-02 Thread Peter Münster
On Tue, 31 May 2005, Hans Hagen wrote: \definebuffer[crap] \setupbuffer[crap][before=\blank\bgroup here we start,after=and here we end\egroup\blank] [...] Hello Hans and Taco, thank you for your hints, but I think, I did not explain my question well enough... I fact, all I need is to know

Re: [NTG-context] \stopbuffer in macro

2005-06-02 Thread Taco Hoekwater
: \definebuffer[crap] \setupbuffer[crap][before=\blank\bgroup here we start,after=and here we end\egroup\blank] [...] Hello Hans and Taco, thank you for your hints, but I think, I did not explain my question well enough... I fact, all I need is to know, how I could write some verbatim text

Re: [NTG-context] \stopbuffer in macro

2005-06-02 Thread Hans Hagen
in the commands etc. yourself of course. Greetings, Taco Peter Münster wrote: On Tue, 31 May 2005, Hans Hagen wrote: \definebuffer[crap] \setupbuffer[crap][before=\blank\bgroup here we start,after=and here we end\egroup\blank] [...] Hello Hans and Taco, thank you for your hints, but I think, I

Re: [NTG-context] \stopbuffer in macro

2005-05-30 Thread Hans Hagen
\definebuffer[crap] \setupbuffer[crap][before=\blank\bgroup here we start,after=and here we end\egroup\blank] \starttext \input tufte \startcrap oeps oeps oeps oeps oesp oeps oeps oeps oeps oesp oeps oeps oeps oeps oesp oeps oeps oeps oeps oesp \stopcrap \input tufte \getcrap \input tufte